import 'package:enjoy_home/utils/token_manager.dart';
import 'package:flutter/material.dart';

class Mine extends StatefulWidget {
  const Mine({Key? key}) : super(key: key);

  @override
  _MineState createState() => _MineState();
}

class _MineState extends State<Mine> {
  @override
  Widget build(BuildContext context) {
    return ListView(
      children: [
        ElevatedButton(
          onPressed: () {
            TokenManager manager = TokenManager();
            manager.saveToken('111111111111111');
          },
          child: Text('存储Token'),
        ),
        ElevatedButton(
          onPressed: () {
            TokenManager().removeToken();
          },
          child: Text('删除Token'),
        ),
      ],
    );
  }
}
